<?php
header("content-type:text/html;charset:utf-8");
$file=$_GET['thefile'];
if(!is_file($file) || !file_exists($file)){
	exit();
}
?>
<img src="<?php echo $file;?>">
<p>
<a href="thumb.php?img=<?php echo $file;?>&amp;sml=s" onlick="changesize('<?php echo $file;;?>','s');return false;">小图</a>
<a href="thumb.php?img=<?php echo $file;?>&amp;sml=m" onlick="changesize('<?php echo $file;;?>','m');return false;">中图</a>
<a href="thumb.php?img=<?php echo $file;?>&amp;sml=l" onlick="changesize('<?php echo $file;;?>','l');return false;">大图</a>
</p>